package com.zhonghui.modlules.user.eshopParam;

import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

public class UserExtParam implements Serializable {
    @ApiModelProperty("提现支付宝用户名")
    private String alipayCode;
    @NotBlank(
            message = "体现类型不能为空"
    )
    @ApiModelProperty("提现类型 weixin alipay")
    private String extractType;
    @NotBlank(
            message = "金额不能为空"
    )
    @ApiModelProperty("提现金额")
    private String money;
    @ApiModelProperty("微信号")
    private String weixin;
    @ApiModelProperty("支付宝账号")
    private String name;

    public UserExtParam() {
    }

    public String getAlipayCode() {
        return this.alipayCode;
    }

    public String getExtractType() {
        return this.extractType;
    }

    public String getMoney() {
        return this.money;
    }

    public String getWeixin() {
        return this.weixin;
    }

    public String getName() {
        return this.name;
    }

    public void setAlipayCode(final String alipayCode) {
        this.alipayCode = alipayCode;
    }

    public void setExtractType(final String extractType) {
        this.extractType = extractType;
    }

    public void setMoney(final String money) {
        this.money = money;
    }

    public void setWeixin(final String weixin) {
        this.weixin = weixin;
    }

    public void setName(final String name) {
        this.name = name;
    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof UserExtParam)) {
            return false;
        } else {
           UserExtParam other = (UserExtParam)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                label71: {
                    Object this$alipayCode = this.getAlipayCode();
                    Object other$alipayCode = other.getAlipayCode();
                    if (this$alipayCode == null) {
                        if (other$alipayCode == null) {
                            break label71;
                        }
                    } else if (this$alipayCode.equals(other$alipayCode)) {
                        break label71;
                    }

                    return false;
                }

                Object this$extractType = this.getExtractType();
                Object other$extractType = other.getExtractType();
                if (this$extractType == null) {
                    if (other$extractType != null) {
                        return false;
                    }
                } else if (!this$extractType.equals(other$extractType)) {
                    return false;
                }

                label57: {
                    Object this$money = this.getMoney();
                    Object other$money = other.getMoney();
                    if (this$money == null) {
                        if (other$money == null) {
                            break label57;
                        }
                    } else if (this$money.equals(other$money)) {
                        break label57;
                    }

                    return false;
                }

                Object this$weixin = this.getWeixin();
                Object other$weixin = other.getWeixin();
                if (this$weixin == null) {
                    if (other$weixin != null) {
                        return false;
                    }
                } else if (!this$weixin.equals(other$weixin)) {
                    return false;
                }

                Object this$name = this.getName();
                Object other$name = other.getName();
                if (this$name == null) {
                    if (other$name == null) {
                        return true;
                    }
                } else if (this$name.equals(other$name)) {
                    return true;
                }

                return false;
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof UserExtParam;
    }

    public int hashCode() {
        boolean PRIME = true;
        int result = 1;
        Object $alipayCode = this.getAlipayCode();
       result = result * 59 + ($alipayCode == null ? 43 : $alipayCode.hashCode());
        Object $extractType = this.getExtractType();
        result = result * 59 + ($extractType == null ? 43 : $extractType.hashCode());
        Object $money = this.getMoney();
        result = result * 59 + ($money == null ? 43 : $money.hashCode());
        Object $weixin = this.getWeixin();
        result = result * 59 + ($weixin == null ? 43 : $weixin.hashCode());
        Object $name = this.getName();
        result = result * 59 + ($name == null ? 43 : $name.hashCode());
        return result;
    }

    public String toString() {
        return "UserExtParam(alipayCode=" + this.getAlipayCode() + ", extractType=" + this.getExtractType() + ", money=" + this.getMoney() + ", weixin=" + this.getWeixin() + ", name=" + this.getName() + ")";
    }
}
